﻿using System;
using System.Drawing;

namespace 使用foreach遍历KnownColor枚举中的所有值
{
    class Program
    {
        static void Main(string[] args)
        {
            foreach (string name in Enum.GetNames(typeof(KnownColor)))
            {
                Console.WriteLine(name);
            }
            Console.WriteLine("系统内的yanse");
            Console.ReadKey();
        }
    }
}
